package com.szw.dlyk.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 客户表
 * @TableName t_customer
 */
@TableName(value ="t_customer")
@Data
public class Customer implements Serializable {
    /**
     * 主键，自动增长，客户ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 线索ID
     */
    private Integer clueId;

    /**
     * 选购产品
     */
    private Integer product;

    /**
     * 客户描述
     */
    private String description;

    /**
     * 下次联系时间
     */
    private Date nextContactTime;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建人
     */
    private Integer createBy;

    /**
     * 编辑时间
     */
    private Date editTime;

    /**
     * 编辑人
     */
    private Integer editBy;

    /**
     * 一对一关联9个对象
     */
    private Clue clueDO = new Clue();
    private User ownerDO = new User();
    private Activity activityDO = new Activity();
    private DicValue appellationDO = new DicValue();
    private DicValue needLoanDO = new DicValue();
    private DicValue intentionStateDO = new DicValue();
    private Product intentionProductDO = new Product();
    private DicValue stateDO = new DicValue();
    private DicValue sourceDO = new DicValue();

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}